package cn.chengdu.service.impl;

import cn.chengdu.entity.Department;
import cn.chengdu.mapper.DepartmentMapper;
import cn.chengdu.mapper.StaffinfoMapper;
import cn.chengdu.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 科室表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2019-11-14
 */


@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {
    @Autowired
private DepartmentMapper departmentMapper;
@Autowired
    private StaffinfoMapper staffinfoMapper;
    public List<Department> selectall(){



        System.out.println(departmentMapper.selectall());
      return  departmentMapper.selectall();


    }
}
